
import { createSSRApp } from 'vue'
import App from './App.vue'
import * as Pinia from 'pinia'
import piniaPersist from 'pinia-plugin-persist-uni'
import xwlUtils from '@/utils/xwl.utils.js'
import uvUI from '@/utils/uv-ui-tools'

export function createApp() {
	const app = createSSRApp(App)
	const pinia = Pinia.createPinia().use(piniaPersist)
	app.use(pinia)
	app.use(uvUI);
	app.config.globalProperties.$xwl= xwlUtils;
  return {  app,Pinia }
}
